package com.jeesite.modules.digitalize.entity;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * (DigitalizeComponent)表实体类
 *
 * @author xk
 * @since 2024-01-03 14:28:16
 */
@Data
@Accessors(chain = true)
public class DigitalizeComponent extends BaseDBEntity {
    public DigitalizeComponent() {
    }

    public DigitalizeComponent(Integer delStatus, String delBatch) {
        this.delStatus = delStatus;
        this.delBatch = delBatch;
    }

    public DigitalizeComponent(Integer parentId, String projectCode, Integer fileSource, String fileName, Integer fileType) {
        this.parentId = parentId;
        this.projectCode = projectCode;
        this.fileSource = fileSource;
        this.fileName = fileName;
        this.fileType = fileType;
    }


    @ApiModelProperty("父id")
    private Integer parentId;
    @ApiModelProperty("项目id")
    private String projectCode;
    @ApiModelProperty("0构建 1图纸")
    private Integer fileSource;
    @ApiModelProperty("构建/图纸名字")
    private String fileName;
    @ApiModelProperty("0文件 1 文件夹")
    private Integer fileType;
    @ApiModelProperty("0 正常 1 删除 2 回收站")
    private Integer delStatus;
    @ApiModelProperty("删除的批次，用于恢复时候")
    private String delBatch;

//    List<DigitalizeComponentVersion> versions;

}

